package com.wing.productionPlan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.productionPlan.model.entity.ProductionPieceRate;
import com.wing.productionPlan.model.request.ProductionPieceRateForm;
import com.wing.productionPlan.model.response.ProductionPieceRateVO;

import java.util.List;
import java.util.Map;

/**
 * 计件工资单-Service
 *
 * @author
 */
public interface ProductionPieceRateService extends IService<ProductionPieceRate> {

    /**
     * 添加
     *
     * @param productionPieceRateForm
     * @return
     */
    int add(ProductionPieceRateForm productionPieceRateForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<ProductionPieceRateVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<ProductionPieceRateVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    ProductionPieceRateVO get4appById(Long id);

    /**
     * 创建工资单
     *
     * @author zhutao
     * @since 2025-05-29 11:31
     * @param 
     * @return int
     */
    int create();
    void create2(Long theWorkOrderPeople);

    Boolean audit(Long id, String status);
}
